Skip to content

fix(release): tolerate read-after-write lag when verifying the release tag (0.4.1) - #12

Merged
Drako01 merged 1 commit into
mainfrom
fix/release-tag-read-after-write
Nov 12, 2026
Merged

Drako01 merged 1 commit into
mainfrom
fix/release-tag-read-after-write

Conversation

@Drako01

@Drako01 Drako01 commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Problem

The publish run for 0.4.0 (run 43136416413) failed in Create immutable tag for verified merge with gh: Not Found (HTTP 404).

It was attempt 1, and refs/tags/v0.4.0 now exists pointing at the merge commit 30f5f52, so the POST git/refs succeeded and the immediate re-read returned 404: the git refs API is eventually consistent. With set -euo pipefail that aborted the job, and Marketplace, Open VSX and GitHub Release were skipped. 0.4.0 was never published.

A second latent issue: the existence check used 2>/dev/null and treated any error (auth, rate limit, outage) as "tag absent", then tried to create it.

Changes

  • release-tag job: new tag_sha helper. It returns the SHA, returns empty only on HTTP 404, and fails on any other error.
  • After creation, poll the tag with backoff (6 attempts, about 42 s max, within the job's 5-minute timeout) before failing the SHA verification.
  • Bump to 0.4.1 (package, lockfile, CHANGELOG, README, STATUS). v0.4.0 is protected and already points at the previous main commit, so a release from this merge needs a new version.

Verification

  • Ran tag_sha locally against the real API: an existing tag returns the SHA, a missing tag returns empty.
  • node --test test/documentation-sync.test.cjs test/release-governance.test.cjs test/release-artifact.test.cjs: 9 pass, 1 fail. The failure (GitHub Release verification downloads VSIX…) also fails on main in a Windows CRLF checkout and is unrelated to this change; CI on Linux is the source of truth.

🤖 Generated with Claude Code

…e tag (0.4.1)

The release-tag job created v0.4.0 and then failed with "gh: Not Found
(HTTP 404)" on the immediate re-read: the git refs API is eventually
consistent. Poll the tag with backoff before failing, and treat only
HTTP 404 as "tag absent" so other API errors fail loudly instead of
falling through to tag creation.

Bump to 0.4.1 because v0.4.0 is already tagged on the previous main
commit and cannot be moved; 0.4.0 was never published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Drako01
Drako01 merged commit 4be3c23 into main Nov 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant